# 继承
class Person:
    name = "Rose"

    def speak(self):
        print("Person:>>>balabalala")


# 表示Student类继承了Person类，自动拥有了Person类的属性和方法
class Student(Person):
    def eat(self):
        print("干饭。。。")

    def speak(self):
        print("Student>>>balabalala")


stu = Student()
print(stu.name)
stu.speak()
stu.eat()

